package marmalius.command.admin;

import marmalius.Player;
import marmalius.command.BaseCommand;
import marmalius.object.door.DoorService;

public class Reload extends BaseCommand {

	public void process(Player player, String[] command) {
		if (command == null || command.length != 1) {
			showHelp(player);
			return ;
		}
		
		if (command[0].equalsIgnoreCase("obj_doors")) {
			if (DoorService.getInstance().loadDoor())
				player.sendPlayerMessage("obj_doors reloaded.");
			else
				player.sendPlayerMessage("error, can't reload obj_doors.");
		}
		else
			showHelp(player);
	}

}
